<?php
if (isset($_POST['mdp']) && isset($_POST['login']))
{
	$login = $_POST['login'];
	$mdp = md5($_POST['mdp']);


	if($_POST['envoyer']=='Envoyer')
	{
		if (!selog($login, $mdp))  
		{
			echo 'identifiant et mot de passe non existant';
		}
		else
		{
			echo "Vous &ecirc;tes bien connect&eacute; !<br/>";
			echo "<meta http-equiv='refresh' content='1.7;index.php' />";
		}
	}
}

?>

<div class='im'><h1>Authentification :</h1></div>
<form id="authent" name="authentification" method="post" action="">
	<p><label>Login :  <br/><input type="text" name="login" id="login" />  </label></p>
	<p><label>Mot de passe : <br/><input type="password" name="mdp" id="mdp" /> </label></p>
	<p><input class="envoyer" type="submit" name="envoyer" id="envoyer" value="Envoyer" /></p>
</form>
